﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zor_IDAL;
using Zor_Tools;

namespace Zor_DAL
{
    public class HouseRegisterStreetOffice_DAL<T> where T : class
    {
        /// <summary>
        ///  获取房屋登记统计柱状图数据(街道办)
        /// </summary>
        /// <returns></returns>
        public static List<T> GetHRList()
        {
            int Dt_Id = RequestSession.GetSessionUser().DT_Id;   //获取登录用户的部门ID
            var sql = "select Dt_Name,ANumber,shopNumber,houNumber from [dbo].[V_HouseRegisterStreetOffice] where Dt_ParentId="+Dt_Id+" ";
            return DapperQuery<T>.DoQueryList(sql, null);
        }
    }
}
